'use strict';

const Service = require('egg').Service;

class UploadService extends Service {
  async updateAvatar(avatar, id) {
    const {
      app
    } = this
    const data = {
      id: id,
      avatar
    }
    return app.mysql.update("user", data)
  }
}

module.exports = UploadService;